package com.lh1010.s2.pojo;

public class UserA {

    private int id;
    private String nickname;
    private String sex;

    // 无参构造
    public UserA() {}

    // 有参构造
    public UserA(int id, String nickname, String sex) {
        this.id = id;
        this.nickname = nickname;
        this.sex = sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "UserA{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
